﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PriErp.Dal;
using PriErp.Tools.Extensions;

namespace PriErp.Frm
{
    public partial class LoginInfo  : DevComponents.DotNetBar.Balloon
    {
        public LoginInfo()
        {
            InitializeComponent();
        }

        private void LoginInfo_Load(object sender, EventArgs e)
        {
            StringBuilder sInfo=new StringBuilder();
            sInfo.AppendFormat("<font color=\"#C0504D\">登录名:<b>{0}</b><br/>",GlobalProvider.UserInfo.Name);
            sInfo.AppendFormat("用户权限:<b>{0}</b><br/>", GlobalProvider.UserInfo.Master.GetDescription());
            sInfo.AppendFormat("上次登录时间为:<b>{0}</b><br/>", GlobalProvider.UserInfo.LastLoginTime.ToString("yyyy年MM月dd日HH:mm"));
            sInfo.AppendFormat("上次修改密码时间为:<b>{0}</b></font>", GlobalProvider.UserInfo.LastChangePassWord.ToString("yyyy年MM月dd日HH:mm"));
            lblInfo.Text = sInfo.ToString();
        }
    }
}
